<template>
	<view class="m-quanyilist">
		<view class="quanyi-item flex-between title">
			<view class="u-item">{{$t('m_quanyilist.item-label-1')}}</view>
			<view class="u-item">{{ defaultInfo.name }}</view>
			<view class="u-item">{{ onInfo.name }}</view>
		</view>
		<!-- <view class="quanyi-item flex-between">
			<view class="u-item">{{$t('m_quanyilist.item-label-2')}}</view>
			<view class="u-item" v-if="defaultInfo.open_task == 1">
				<uni-icons type="checkbox-filled" size="20" color="green"></uni-icons>
			</view>
			<view class="u-item" v-else>
				<uni-icons type="clear" size="20" color="red"></uni-icons>
			</view>
			<view class="u-item" v-if="onInfo.open_task == 1">
				<uni-icons type="checkbox-filled" size="20" color="green"></uni-icons>
			</view>
			<view class="u-item" v-else>
				<uni-icons type="clear" size="20" color="red"></uni-icons>
			</view>
			
		</view> -->
		<view class="quanyi-item flex-between">
			<view class="u-item">{{$t('m_quanyilist.item-label-3')}}</view>
			<view class="u-item">{{$util.handleStr($t('m_quanyilist.day'),defaultInfo.rec_num)}}</view>
			<view class="u-item v">{{$util.handleStr($t('m_quanyilist.day'),onInfo.rec_num)}}</view>
		</view>
		<view class="quanyi-item flex-between">
			<view class="u-item">{{$t('m_quanyilist.item-label-4')}}</view>
			<view class="u-item" v-if="defaultInfo.vip_reward > 0">
				{{ defaultInfo.vip_reward }}%
			</view>
			<view class="u-item" v-else>
				<uni-icons type="clear" size="20" color="red"></uni-icons>
			</view>
			<view class="u-item v" v-if="onInfo.vip_reward>0">
				{{ onInfo.vip_reward }}%
			</view>
			<view class="u-item" v-else>
				<uni-icons type="clear" size="20" color="red"></uni-icons>
			</view>
		</view>
		<view class="quanyi-item flex-between">
			<view class="u-item">{{$t('m_quanyilist.item-label-5')}}</view>
			<view class="u-item"
				v-if="defaultInfo.one_parent_reward>0">
				{{ defaultInfo.one_parent_reward }}%
			</view>
			<view class="u-item" v-else>
				<uni-icons type="clear" size="20" color="red"></uni-icons>
			</view>
			<view class="u-item v" 
				v-if="onInfo.one_parent_reward > 0">
				{{ onInfo.one_parent_reward }}%
			</view>
			<view class="u-item" v-else>
				<uni-icons type="clear" size="20" color="red"></uni-icons>
			</view>
		</view>
		<view class="quanyi-item flex-between">
			<view class="u-item">{{$t('m_quanyilist.item-label-6')}}</view>
			<view class="u-item"  
				v-if="defaultInfo.two_parent_reward > 0">
				{{ defaultInfo.two_parent_reward }}%
			</view>
			<view class="u-item" v-else>
				<uni-icons type="clear" size="20" color="red"></uni-icons>
			</view>
			<view class="u-item v" 
				v-if="onInfo.two_parent_reward > 0">
				{{ onInfo.two_parent_reward }}%
			</view>
			<view class="u-item" v-else>
				<uni-icons type="clear" size="20" color="red"></uni-icons>
			</view>
		</view>
		<view class="quanyi-item flex-between">
			<view class="u-item">{{$t('m_quanyilist.item-label-7')}}</view>
			<view class="u-item">{{ defaultInfo.with_fee }}%</view>
			<view class="u-item v">{{ onInfo.with_fee }}%</view>
		</view>
		<view class="quanyi-item flex-between">
			<view class="u-item">{{$t('m_quanyilist.item-label-8')}}</view>
			<view class="u-item">
				<uni-icons type="clear" size="20" color="red"></uni-icons>
			</view>
			<view class="u-item">
				<uni-icons type="checkbox-filled" size="20" color="green"></uni-icons>
			</view>
		</view>
			
	</view>
</template>

<script>
	export default {
		name:"m-quanyilist",
		props: ['defaultInfo','onInfo'],
		data() {
			return {
				
			};
		}
	}
</script>

<style lang="scss">
	.m-quanyilist{
		border-radius: 10px;
		background-color: #fff;
	}
	.m-quanyilist .quanyi-item{
		width: 100%;
		flex-wrap: nowrap;
		text-align: center;
	}
	.m-quanyilist .quanyi-item.title{
		font-weight: bold;
	}
	.m-quanyilist .quanyi-item:nth-child(2n) {
	    background: #f5f5f5;
	}
	.m-quanyilist .u-item{
		padding: 10px 30rpx;
		width: 100%;
		text-align: center;
		font-size: $contentSize;
	}
	.m-quanyilist .u-item.v{
		color: #dda276;
		font-weight: bold;
		
	}
</style>
